
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Role 分页列表
*/
export function getRolePagination(data: any) {
  return axios.get(`${context}/role/pagination`, { params: data });
}


/**
 * 获取 Role 所有数据
*/
export function getRoleAllList(data: any) {
  return axios.get(`${context}/role/all`, { params: data });
}


/**
 * 获取 Role 详情
*/
export function getRoleDetailById(id: any) {
  return axios.get(`${context}/role/${id}`, { params:{id} });
}


/**
 * 新增 Role
*/
export function addRole(data: any) {
  return axios.post(`${context}/role`, data);
}

/**
 * 修改 Role
*/
export function updateRole(data: any) {
  return axios.put(`${context}/role`, data);
}

/**
 * 删除 Role
*/
export function batchRemoveRole(data: any) {
  return axios.post(`${context}/role/batchRemove`, data);
}

    